import request from '@/utils/request'

// 分页
export function getList(params) {
  return request({
    url: '/carMaintain/selectPage',
    method: 'POST',
    params
  })
}

// 添加
export function addMaintain(data) {
  return request({
    url: '/carMaintain/add',
    method: 'POST',
    data
  })
}

// 修改查询
export function selectMaintain(params) {
  return request({
    url: '/carMaintain/findId',
    method: 'POST',
    params
  })
}

// 删除
export function deleteMaintain(data) {
  return request({
    url: '/carMaintain/delete',
    method: 'post',
    data
  })
}

// 修改
export function updateMaintain(data) {
  return request({
    url: '/carMaintain/update',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

// 查所有人
export function selectOperator(params) {
  return request({
    url: '/employee/personnelInfoOther',
    method: 'post',
    params
  })
}

//
export function selectCarInfo(params) {
  return request({
    url: '/carInformation/carInfo',
    method: 'post',
    params
  })
}
